package com.javaxiaobang.pachong.csdn.proxy;

import lombok.extern.slf4j.Slf4j;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Random;

/**
 * Created by xiaobang on 2020/5/29.
 */
@Slf4j
@Component
public class PaChongConfig {

    @Autowired
    private CsdnPaChongConfig csdnPaChongConfig;

    @PostConstruct
    public void init() {
        try {
            log.info("爬虫加载开始----------------------------------------");
            csdnPaChongConfig.init();
            log.info("爬虫加载完成----------------------------------------");
        } catch (Exception e) {
            log.info("PaChongConfig异常:", e);
        }
    }
}
